﻿<UserControl x:Class="FM.录音.Views.电平表2"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:viewModels="clr-namespace:FM.录音.ViewModels"
             xmlns:接口="clr-namespace:FM.接口;assembly=FM"
             d:DataContext="{d:DesignInstance Type=viewModels:电平表2ViewModel}"
             d:DesignHeight="300"
             d:DesignWidth="300"
             mc:Ignorable="d">
    <Grid x:Name="grid">
        <Grid.RowDefinitions>
            <RowDefinition Height="10*" />
            <RowDefinition Height="20*" />
            <RowDefinition Height="70*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="10" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <ProgressBar Name="Bar1"
                     Margin="10,0"
                     Foreground="Red"
                     Maximum="1"
                     Minimum="0"
                     Orientation="Vertical"
                     SmallChange="0.01"
                     Value="{Binding 左电平红}" />
        <Border Grid.Row="0"
                Grid.Column="0"
                Margin="10,0"
                BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}"
                BorderThickness="1" />
        <Border Grid.Row="0"
                Grid.Column="2"
                Margin="10,0"
                BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}"
                BorderThickness="1" />
        <!--<Line Grid.Column="0"
              Margin="10,0"
              Stroke="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}"
              StrokeThickness="1"
              X1="0"
              X2="{Binding ActualWidth,
                           ElementName=Bar1,
                           Mode=OneWay}"
              Y1="0"
              Y2="0"  />-->
        <ProgressBar Grid.Row="0"
                     Grid.Column="2"
                     Margin="10,0"
                     Foreground="Red"
                     Maximum="1"
                     Minimum="0"
                     Orientation="Vertical"
                     SmallChange="0.01"
                     Value="{Binding 右电平红}" />

        <ProgressBar Grid.Row="1"
                     Grid.Column="0"
                     Margin="10,0"
                     Foreground="Yellow"
                     Maximum="1"
                     Minimum="0"
                     Orientation="Vertical"
                     SmallChange="0.01"
                     Value="{Binding 左电平黄}" />
        <Border Grid.Row="1"
                Grid.Column="0"
                Margin="10,0"
                BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}"
                BorderThickness="1" />
        <Border Grid.Row="1"
                Grid.Column="2"
                Margin="10,0"
                BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}"
                BorderThickness="1" />
        <ProgressBar Grid.Row="1"
                     Grid.Column="2"
                     Margin="10,0"
                     Foreground="Yellow"
                     Maximum="1"
                     Minimum="0"
                     Orientation="Vertical"
                     SmallChange="0.01"
                     Value="{Binding 右电平黄}" />
        <ProgressBar Grid.Row="2"
                     Grid.Column="0"
                     Margin="10,0"
                     Foreground="{Binding 指针画笔}"
                     Maximum="1"
                     Minimum="0"
                     Orientation="Vertical"
                     SmallChange="0.01"
                     Value="{Binding 左电平绿}" />
        <Border Grid.Row="2"
                Grid.Column="0"
                Margin="10,0"
                BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}"
                BorderThickness="1" />
        <Border Grid.Row="2"
                Grid.Column="2"
                Margin="10,0"
                BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}"
                BorderThickness="1" />

        <ProgressBar Grid.Row="2"
                     Grid.Column="2"
                     Margin="10,0"
                     Foreground="{Binding 指针画笔}"
                     Maximum="1"
                     Minimum="0"
                     Orientation="Vertical"
                     SmallChange="0.01"
                     Value="{Binding 右电平绿}" />

    </Grid>
</UserControl>

